package com.java.controller;

import com.java.entity.Purchaseinfo;
import com.java.service.PurchaseinfoService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Purchaseinfo)表控制层
 *
 * @author makejava
 * @since 2021-01-20 18:54:57
 */
@RestController
@RequestMapping("/purchaseinfo/")
public class PurchaseinfoController {
    /**
     * 服务对象
     */
    @Resource
    private PurchaseinfoService purchaseinfoService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Purchaseinfo selectOne(Integer id) {
        return this.purchaseinfoService.queryById(id);
    }

}